package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_criterion_evaluation_show")
public class CriterionEvaluationShow extends BaseEntity {
        /**
     * 标准uuid
     */
    @DbTableField(columnName = "c_criterion_id", dbType = DbTypeEnum.VARCHAR)
    public String criterionId ;

    /**
     * 父id
     */
    @DbTableField(columnName = "c_criterion_pid", dbType = DbTypeEnum.VARCHAR)
    public String criterionPid ;

    /**
     * 区划id
     */
    @DbTableField(columnName = "c_map_id", dbType = DbTypeEnum.VARCHAR)
    public String mapId ;

    /**
     * 区划名称
     */
    @DbTableField(columnName = "c_map_name", dbType = DbTypeEnum.VARCHAR)
    public String mapName ;

    /**
     * 部门id
     */
    @DbTableField(columnName = "c_dept_id", dbType = DbTypeEnum.VARCHAR)
    public String deptId ;

    /**
     * 部门名称
     */
    @DbTableField(columnName = "c_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String deptName ;

    /**
     * 分子
     */
    @DbTableField(columnName = "c_numerator", dbType = DbTypeEnum.FLOAT)
    public Float numerator ;

    /**
     * 分母
     */
    @DbTableField(columnName = "c_denominator", dbType = DbTypeEnum.FLOAT)
    public Float denominator ;

    /**
     * 实际值
     */
    @DbTableField(columnName = "c_real_value", dbType = DbTypeEnum.FLOAT)
    public Float realValue ;

    /**
     * 单项是否达标
     */
    @DbTableField(columnName = "c_is_reach", dbType = DbTypeEnum.INTEGER)
    public Integer isReach ;

    /**
     * 多项关联是否达标
     */
    @DbTableField(columnName = "c_is_real_reach", dbType = DbTypeEnum.INTEGER)
    public Integer isRealReach ;

    /**
     * 年份
     */
    @DbTableField(columnName = "c_year", dbType = DbTypeEnum.VARCHAR)
    public String year ;

    /**
     * 考核项数量
     */
    @DbTableField(columnName = "c_evaluation_count", dbType = DbTypeEnum.INTEGER)
    public Integer evaluationCount ;

    /**
     * 达标数量
     */
    @DbTableField(columnName = "c_reach_count", dbType = DbTypeEnum.INTEGER)
    public Integer reachCount ;

    /**
     * 修改时间
     */
    @DbTableField(columnName = "c_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime updateDate ;

    @ApiModelProperty(value = "标准名称")
    private String criterionName;

    @ApiModelProperty(value = "是否扩展")
    private Integer isExpand;

    @ApiModelProperty(value = "关联关系类型")
    private Integer relationType;

    @ApiModelProperty(value = "公式")
    private String expression;

    @ApiModelProperty(value = "单位")
    private String unit;
}
